<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN">
<head>
<title><lang>DoYouHaoBaby-X Ucenter 管理平台</lang> | <lang>登录</lang></title>
<load file="../Public/Css/style.css" />
<import file="Js.Vendor.Jquery" />
<import file="Js.Dyhb#package" />
<import file="Js.Extend.Extend#package" />
<load file="../Public/Js/common.js" />

</head>

<body onLoad="document.login.user_name.focus()">

{script}
<!--
var PUBLIC	 =	 '__PUBLIC__';
var URL = '__URL__';
Dyhb.Ajax.Dyhb.Image = ['__TMPLPUB__/Images/ajax/loading.gif', '__TMPLPUB__/Images/ajax/ok.gif','__TMPLPUB__/Images/ajax/update.gif' ]
Dyhb.Ajax.Dyhb.UpdateTips	=	D.L( '登录中...');

function login_handle( data,status ){

   if (status==1){

       window.location = '{:G::U('index/index')}';
   }
}

function keydown(e){

	var e = e || event;
	if (e.keyCode==13){

	    Dyhb.AjaxSubmit('form1','{:G::U('public/check_login')}','result',login_handle);
	}
}


//-->
{/script}

<div id="login">
   <form method='post' name="login" id="form1">
      <p><import file="Images/logo#gif" type='img'  basepath="TMPLPUB"/>
	  </p>
	  <p><div id="result" class="none"></div></p>
	  <p>
		  <label><lang>用户名/E-mail</lang><br />
		  <input type="text" name="user_name" id="user_name" class="field" size="51"/></label>
	  </p>
	  <p>
		  <label><lang>密码</lang><br />
		  <input type="password" name="user_password" id="user_password" class="field" size="51" /></label>
	  </p>
	  <if condition=$bLoginSeccode >
	  <p>
		  <label><lang>验证码</lang><br />
		  <input onfocus="updateSeccode();this.onfocus = null;" type="text" onKeyDown="keydown(event)"  onBlur="checkSeccode( 'result' );" class="field" name="seccode" size="10" id="seccode"/>
		  <span id="seccodeMessage">&nbsp;</span><br/>
		  <div id="seccodeImage"></div>
		  </label>
	  </p>
	  </if>
	  <p>
	      <input type="hidden" name="ajax" value="1">
		  <input type="button" class="button right" value="<lang>  登 录  </lang>" onClick="Dyhb.AjaxSubmit('form1','{:G::U('public/check_login')}','result',login_handle);" />
	  </p>
   </form>
</div>
</body>
</html>